import request from '@/utils/request'

// 查询承包商人员资质列表
export function listPersonneldoc(query) {
  return request({
    url: '/cbs/contract/personnel/document/list',
    method: 'get',
    params: query
  })
}

// 查询承包商人员资质详细
export function getPersonneldoc(id) {
  return request({
    url: '/cbs/contract/personnel/document/' + id,
    method: 'get'
  })
}

// 新增承包商人员资质
export function addPersonneldoc(data) {
  return request({
    url: '/cbs/contract/personnel/document',
    method: 'post',
    data: data
  })
}

// 修改承包商人员资质
export function updatePersonneldoc(data) {
  return request({
    url: '/cbs/contract/personnel/document',
    method: 'put',
    data: data
  })
}

// 删除承包商人员资质
export function delPersonneldoc(id) {
  return request({
    url: '/cbs/contract/personnel/document/' + id,
    method: 'delete'
  })
}
